using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._Workspace
{
    /// <summary>
    /// <para>Create Connection String</para>
    /// <para>Create a connection string</para>
    /// <para>创建连接字符串</para>
    /// </summary>    
    [DisplayName("Create Connection String")]
    public class CreateConnectionString : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public CreateConnectionString()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_data">
        /// <para>Input Data Element</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        public CreateConnectionString(object _in_data)
        {
            this._in_data = _in_data;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Create Connection String";

        public override string CallName => "management.CreateConnectionString";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_data, _data_type, _out_connection_string];

        /// <summary>
        /// <para>Input Data Element</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Data Element")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_data { get; set; }


        /// <summary>
        /// <para>Data Type</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Data Type")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _data_type { get; set; } = null;


        /// <summary>
        /// <para>CIMDATA Connection String</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("CIMDATA Connection String")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_connection_string { get; set; }


        public CreateConnectionString SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}